﻿namespace FallingRocks
{
    using System;

    public class InputException<T> : ArgumentOutOfRangeException
    {
        private readonly T input;

        public InputException(T input, string message, Exception causeException)
            : base(message, causeException)
        {
            this.input = input;
        }

        public override string Message
        {
            get
            {
                return string.Format("Invalid input {0}", this.input);
            }
        }
    }
}
